import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Test2 {
    public static void main(String[] args) {
        Date date=new Date();
        System.out.println(date);
        SimpleDateFormat sdf1=new SimpleDateFormat("yyyy年MM月dd日HH:mm:ss");
        String format1=sdf1.format(date);
        System.out.println(format1);
        Calendar calendar =Calendar.getInstance();
        calendar.setTime(date);
        int dayOfWeek=calendar.get(Calendar.DAY_OF_WEEK)-1;
        String week=String.valueOf(dayOfWeek);
        format1+=" "+"星期"+dayOfWeek;
        System.out.println(format1);
    }

}
